# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=cairomm1.16
pkgver=1.16.2
pkgrel=1
pkgdesc="C++ bindings to Cairo vector graphics library"
url="https://www.cairographics.org"
arch="all"
license="LGPL-2.0-or-later AND MPL-1.1"
makedepends="meson libsigc++3-dev cairo-dev perl"
subpackages="$pkgname-dev"
source="https://www.cairographics.org/releases/cairomm-$pkgver.tar.xz"
builddir="$srcdir/cairomm-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dboost-shared=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
61dc639eabe8502e1262c53c92fe57c5647e5ab9931f86ed51e657df1b7d0e3e58c2571910a05236cc0dca8d52f1f693aed99a553430f14d0fb87be1832a6b62  cairomm-1.16.2.tar.xz
"
